package cn.wgoodq.study.MultiThreading;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * Created by kyou on 2016/12/22.
 */
public class DemoThread extends Thread {
    private static final Logger logger = LogManager.getLogger(DemoThread.class);

    private String title = "";

    DemoThread(String title) {
        this.title = title;
    }

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            logger.info("{} -- {}", title, i);
        }
    }
}
